#include <stdlib.h>
#include <boost/lexical_cast.hpp>
#include <string>

using namespace std;

class Video_ffplay
{

	string to_string(int i)
	{
		return boost::lexical_cast<string>(i);	
	}
public:
	Video_ffplay(string video,int x, int y, int w, int h, int z, int ts, int te)
	{
		string s="ffplay -x " + to_string(w) + " -y " + to_string(h) + " -ss " + to_string(ts) + " -t " + to_string(te) + " " + video + " >> log/video.log  2>&1";
  		int i=system (s.c_str());
	}

	~Video_ffplay()
	{
	}
	
};

class Sound_ffplay
{
	string to_string(int i)
	{
		return boost::lexical_cast<string>(i);	
	}
public:
	Sound_ffplay(string sound,int x, int y, int w, int h, int z, int ts, int te)
	{
		string s="ffplay -x " + to_string(w) + " -y " + to_string(h) + " -ss " + to_string(ts) + " -t " + to_string(te) + " " + sound + " >> log/sound.log  2>&1";
  		int i=system (s.c_str());
	}

	~Sound_ffplay()
	{
	}
	
};

/*
int main ()
{
  Video_ffplay v;
  return 0;
}
*/
